package org.springbus.habit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 属性标签表
 * </p>
 *
 * @author Mr.Han
 * @since 2024-05-16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("activity_record")
@Schema(description = "属性标签表")
public class ActivityRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description ="活动名称")
    @TableField("name")
    private String name;

    @Schema(description ="客户数量")
    @TableField("consumer_num")
    private Integer consumerNum;

    @Schema(description ="订单数")
    @TableField("order_num")
    private Integer orderNum;

    @Schema(description ="产出金额")
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description ="实际投入成本")
    @TableField("cost")
    private BigDecimal cost;

    @Schema(description ="是否删除 0=未删除 1=删除")
    @TableField("deleted")
    private Boolean deleted;

    @Schema(description ="创建时间")
    @TableField("gmt_create")
    private Date gmtCreate;

    @Schema(description ="修改时间")
    @TableField("gmt_modified")
    private Date gmtModified;
}
